int xvasprintf(char** strp, const char* fmt, va_list ap);
char* strupper(char* src);
char* strlower(char* src);
-signed int get_tz_offset();
time_t mklocaltime(struct tm* t);
time_t mkgmtime(struct tm* t);
bool gpsbabel_testmode();
*/
unsigned long get_crc32(const void* data, int datalen);
-/*
- * From nmea.c
- */
-int nmea_cksum(const char* buf);
-
/*
* Color helpers.
*/
static int header_ct[unknown_header + 1];
#define GARMIN_UNKNOWN_ALT 1.0e25f
-#define DEFAULT_DISPLAY garmin_display_symbol_and_name
#define DEFAULT_DATE_FORMAT "dd/mm/yyyy"
#define DEFAULT_TIME_FORMAT "HH:mm:ss"
{"timezone", &opt_timezone, "Time zone ID", nullptr, ARGTYPE_STRING, ARG_NOMINMAX, nullptr},
};
};
-#endif // GPX_H_INCLUDED_
+#endif // GLOBALSATSPORT_H_INCLUDED_
gbfprintf(file_out, "<br>\n");
if (wpt->description != wpt->shortname) {
if (wpt->HasUrlLink()) {
- char* d = html_entitize(CSTR(wpt->description));
+ char* d = html_entitize(wpt->description);
UrlLink link = wpt->GetUrlLink();
gbfprintf(file_out, "<a href=\"%s\">%s</a>", CSTR(link.url_), d);
xfree(d);
logpart = xml_findfirst(curlog, "groundspeak:finder");
if (logpart) {
- char* f = html_entitize(CSTR(logpart->cdata));
+ char* f = html_entitize(logpart->cdata);
gbfprintf(file_out, "<span class=\"gpsbabellogfinder\">%s</span> on ", f);
xfree(f);
}
gps_device_op12 Write_Packet;
} gps_device_ops;
-#endif /* gpsdevice.h */
+#endif /* gpsdevice_h */
if (ret != LIBUSB_SUCCESS) {
fatal("libusb_set_configuration failed: %s\n",
libusb_strerror(static_cast<enum libusb_error>(ret)));
- };
+ }
#endif
#if 0
#endif
-#endif // NAVILINK_H_INCLUDED
+#endif // NAVILINK_H_INCLUDED_
#include <cstdio>
#include <cstdlib>
-using guid_t = unsigned long long;
-
static inifile_t* fin;
static gbfile* fout;
static Waypoint** waypt_table;
#if FILTERS_ENABLED
#define MYNAME "simplify"
-#define sqr(a) ((a)*(a))
-
void SimplifyRouteFilter::free_xte(struct xte* xte_rec)
{
delete xte_rec->intermed;
works just like mktime but without all the mucking
around with timezones and daylight savings
- obsoletes get_tz_offset()
-
Borrowed from lynx GPL source code
http://lynx.isc.org/release/lynx2-8-5/src/mktime.c
return entitize(str, false);
}
-char* html_entitize(const char* str)
-{
- return entitize(str, true);
-}
char* html_entitize(const QString& str)
{
return entitize(CSTR(str), true);